@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 打印样式 */
@media print {
  body * {
    visibility: hidden;
  }
  
   .qr-code-printable-content, .qr-code-printable-content * {
     visibility: visible;
   }
   
   .qr-code-printable-content {
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     width: 100%;
     max-width: 300px;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
     padding: 20px;
   }
   
   /* 隐藏所有其他元素 */
   body *:not(.qr-code-printable-content):not(.qr-code-printable-content *) {
     visibility: hidden !important;
   }
}